//
//  HJEmoticonKeyboard.swift
//  Weibo
//
//  Created by 韩佳 on 16/4/26.
//  Copyright © 2016年 ddg. All rights reserved.
//

import UIKit

class HJEmoticonKeyboard: UIView {

    override init(frame: CGRect) {
        super.init(frame: frame)
        setupUI()
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    private func setupUI(){
        backgroundColor = UIColor(patternImage: UIImage(named: "emoticon_keyboard_background")!)
        emoticonToolBar.emoticonButtonClickClosure = { (type) -> () in
            print(type)            
        }
        addSubview(emoticonToolBar)

        emoticonToolBar.snp_makeConstraints { (make) -> Void in
            make.leading.trailing.bottom.equalTo(self)
            make.height.equalTo(37)
        }
    }
    private lazy var emoticonToolBar:HJEmoticonToolBar = HJEmoticonToolBar(frame: CGRectZero)
}
